//
//  HXReletedSmallModel.m
//  ZCooking
//
//  Created by 韩旭 on 16/9/23.
//  Copyright © 2016年 HX_. All rights reserved.
//

#import "HXReletedSmallModel.h"
#import "HXTagsModel.h"

@implementation HXReletedSmallModel
- (instancetype)initWithDic:(NSDictionary *)dic {
    self = [super initWithDic:dic];
    if (self) {
        self.tags_info = [HXTagsModel getTagsModelWithArray:dic[@"tags_info"]];
    }
    return self;
}
+ (NSArray *)getReletedWithArray:(NSArray *)array {
    NSMutableArray *arrAll = [NSMutableArray array];
    for (NSDictionary *dic in array) {
        [arrAll addObject:[HXReletedSmallModel ModelWithDic:dic]];
    }
    return arrAll;
}
@end
